<template>
  <BasicDrawer
    v-bind="$attrs"
    @register="registerDrawer"
    title="合作方详情"
    width="800px"
  >
  <Description :column="1" :data="partner" :schema="schema" />
  </BasicDrawer>
</template>
<script lang="ts" setup>
  import { ref } from 'vue';
  import { schema } from './data';
  import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
  import { Description } from '@/components/Description';
  const partner = ref({});
  const [registerDrawer] = useDrawerInner(async (data) => {
    partner.value = data.record.partner;
  });
</script>